<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="/vue.js"></script>
</head>
<body>
    

    <script>
        // ----------------------生命周期钩子------------------------------
        new Vue({
            data: { 
                a: 100
            },
            // created 钩子可以用来在一个实例被创建之后执行代码
            created: function(){
                // this 指向它的Vue实例
                console.log("a is ", this.a)
            }
        })
    </script>
</body>
</html>